using Microsoft.EntityFrameworkCore;
using MvcDemo.Models;

namespace MvcDemo.Db
{
    public class Dbsoft : DbContext{
        protected override void OnConfiguring(DbContextOptionsBuilder builder){
            var _string="server=.;database=Dbsoft;uid=sa;pwd=123456;";
            builder.UseSqlServer(_string);

        }
        public DbSet<Product> products{get;set;}
        public DbSet<Category> categories{get;set;}
    }
}